package com.foucus.myfouces.MVP.View.views.Fragment;

import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.foucus.myfouces.Base.BaseFragment;
import com.foucus.myfouces.R;
import com.foucus.myfouces.Resource.Util.GliderUtil;
import com.foucus.myfouces.Resource.Util.SharedPreferencesUtil;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * Created by yf-06 on 2017/6/27.
 * 关注
 */

public class FollowFg extends BaseFragment {

    private View rootView;
    private Activity mActivity;
    private SharedPreferencesUtil sharedPreferencesUtil;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        if (rootView == null) {
            rootView = inflater.inflate(R.layout.fragment_follow, container, false);
        }
        ViewGroup parent = (ViewGroup) rootView.getParent();
        if (parent != null) {
            parent.removeView(rootView);
        }
        ButterKnife.bind(this, rootView);
        return rootView;
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        mActivity = getActivity();
    }


    @Override
    public void onDestroy() {
        super.onDestroy();
        ButterKnife.unbind(this);
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }
}
